<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" href="assets/css/style.css" />
		<link rel="stylesheet" href="assets/css/iconfont.css" />
		<title>登录界面</title>
		<link href='./images/logo111.png' rel='icon' type='image/x-icon'/>
	</head>
	<body>
		<a href="index.html"><img src="images/logo.png" class="tp1"></a>
		<div id="bigBox">
		<h1>登录</h1>
			<div class="inputBox">
				<div class="inputText">
					<span class="iconfont icon-nickname"></span>
					<input id="username" type="text" placeholder="用户名" />
				</div>
				<div class="inputText">
					<span class="iconfont icon-visible"></span>
					<input id="password" type="password" placeholder="密码" />
				</div>
			</div>
			<input class="loginButton" type="button" onclick="on()" value="登录"  />
		</div>
	</body>
	<script>
		
		function on(){
			//alert("我被点了")
		let name=document.getElementById("username").value;
		//console.log(name);
		let pwd=document.getElementById("password").value;
		//console.log(pwd);
		
		if(name==="admin"&&pwd==="123456"){
			alert("登录成功！")
			window.location="http://localhost:8090/#/"
		}else{
			alert("用户名或密码错误 登录失败！")
		}
		}
		
	</script>
</html>